import request from '@/libs/axios'

export const environment = params => {
  return request({
    url: '/environment',
    method: 'get',
    params: params
  })
}

export const addEnvironment = params => {
  return request({
    url: '/environment',
    method: 'post',
    data: params
  })
}

export const editEnvironment = params => {
  return request({
    url: '/environment/' + params.id,
    method: 'put',
    data: params
  })
}

export const deleteEnvironment = params => {
  return request({
    url: '/environment/' + params.id,
    method: 'delete',
    data: params
  })
}
